package cn.unknowpupil.init.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created at 2020/10/21 by w10g <br>
 * Initialize RsaProperties ... <br>
 *
 * @author unknowpupil
 * @since 0.0.1
 */
@Data
@Component
public class RsaProperties {

    public static String privateKey;

    @Value("${rsa.private_key}")
    public void setPrivateKey(String privateKey) {
        RsaProperties.privateKey = privateKey;
    }
}
